library(pracma)
library(plotly)


C = function(t) {
  data.frame(
    t = t,
    x = cos(t),
    y = sin(t),
    z = t
  )
}

t = linspace(0, 10, 100)
data = C(t)
plot_ly(data, x = ~x, y = ~y, z = ~z, type = 'scatter3d', mode = 'lines')